import request from '@/utils/request'

/*TODo 注意,如果是psot请求,不加params  ,get请求需要加上*/

// 修改密码
export function recommendPage(current,size) {
  let data = {
    "current":current,
    "size":size,
  };
  return request({
    url: '/recommend/page',
    method: 'get',
    params:data
  })
}

// 推荐置顶
export function topRecommend(id) {
  let data = {
    "id":id
  };
  return request({
    url: '/recommend/topRecommend',
    method: 'get',
    params:data
  })
}


// 删除推荐
export function removeRecommend(id) {
  let data = {
    "id":id
  };
  return request({
    url: '/recommend/deleteRecommend',
    method: 'get',
    params:data
  })
}
